package com.xbxkj.service;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
/**
 * Created by Zhang on 2018/8/4.
 * springboot启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.xbxkj.service" })
@MapperScan({"com.xbxkj.service.mapper"})
@ServletComponentScan(value = {"com.xbxkj.service.config"})
@EnableEurekaClient
public class ServiceApplication   {

    public  static  void main(String [] args){
        SpringApplication.run(ServiceApplication.class,args);
    }
}